package com.ruoyi.pingan.fymodule.order.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.io.Serializable;

/**
 * <p>
 * 平安分账会员交易退款
 * </p>
 *
 * @author wangy
 * @since 2025-07-02
 */
@Data
@TableName("sxo_safety_mem_tran_refund")
@Schema(name = "SxoSafetyMemTranRefund对象", description = "平安分账会员交易退款")
public class SxoSafetyMemTranRefund implements Serializable {

    private static final long serialVersionUID = 1L;

    @Schema(description = "自增id")
    @TableId(value = "id", type = IdType.AUTO)
    private String id;

    @Schema(description = "用户ID")
    @TableField("user_id")
    private String userId;

    @Schema(description = "会员交易ID")
    @TableField("safety_tran_id")
    private String safetyTranId;

    @Schema(description = "订单ID")
    @TableField("order_id")
    private String orderId;

    @Schema(description = "订单号")
    @TableField("order_no")
    private String orderNo;

    @Schema(description = "店铺ID")
    @TableField("shop_id")
    private String shopId;

    @Schema(description = "交易功能标识：2=会员交易")
    @TableField("function_flag")
    private Integer functionFlag;

    @Schema(description = "原交易流水号")
    @TableField("old_tran_seq_no")
    private String oldTranSeqNo;

    @Schema(description = "原转出见证子账户的帐号")
    @TableField("old_out_sub_acct_no")
    private String oldOutSubAcctNo;

    @Schema(description = "原转出会员代码")
    @TableField("old_out_member_code")
    private String oldOutMemberCode;

    @Schema(description = "原转入见证子账户的账号")
    @TableField("old_in_sub_acct_no")
    private String oldInSubAcctNo;

    @Schema(description = "原转入会员代码")
    @TableField("old_in_member_code")
    private String oldInMemberCode;

    @Schema(description = "原订单号")
    @TableField("old_order_no")
    private String oldOrderNo;

    @Schema(description = "退款金额")
    @TableField("refund_amt")
    private String refundAmt;

    @Schema(description = "退款手续费")
    @TableField("refund_fee")
    private String refundFee;

    @Schema(description = "交易状态：-2：退款失败;2:退款")
    @TableField("refund_status")
    private Integer refundStatus;

    @Schema(description = "退款时间")
    @TableField("refund_time")
    private String refundTime;

    @Schema(description = "交易流水号")
    @TableField("cnsmr_seq_no")
    private String cnsmrSeqNo;

    @Schema(description = "备注")
    @TableField("remark")
    private String remark;

    @Schema(description = "电商见证宝系统生成的流水号")
    @TableField("jzb_accept_seq_no")
    private String jzbAcceptSeqNo;

    @Schema(description = "错误信息")
    @TableField("error_msg")
    private String errorMsg;

    @Schema(description = "删除状态(0:正常；1：删除)")
    @TableField("status")
    private Integer status;

    @Schema(description = "添加时间")
    @TableField("add_time")
    private String addTime;

    @Schema(description = "更新时间")
    @TableField("upd_time")
    private String updTime;

}
